package com.nanfangzhe.shirodemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author nanfangzhe
 * @since 2020-11-25
 */
@ApiModel(value="UPermission对象", description="权限表")
public class UPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "url地址（权限地址）")
    private String url;

    @ApiModelProperty(value = "url描述（需要具备的权限）")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "UPermission{" +
        "id=" + id +
        ", url=" + url +
        ", name=" + name +
        ", sort=" + sort +
        "}";
    }
}
